@()(implicit request: RequestHeader)
@main("注册") {
	<style>


	</style>

	<div class="register">
		<h2 class="page-heading" style="font-size: 25px;">注册</h2>
	</div>

	<form class="registration-form form-horizontal" id="form"
	accept-charset="UTF-8" method="post" action="@routes.UserController.register()">

		<div class="form-group">
		@if(request.flash.get("info").isDefined) {
			<span class="text-success col-sm-offset-5" style="line-height: 35px;">
				注册成功，请<a href="@routes.AppController.loginBefore()">登录</a>！
			</span>
		}
		</div>

		<div class="form-group">
			<label class="control-label col-sm-offset-4 col-sm-1">账号:</label>
			<div class="col-sm-3">
				<input name="account" placeholder="账号" autofocus="autofocus" class="form-control" value=""/>
			</div>
		</div>

		<div class="form-group">
			<label class="control-label col-sm-offset-4 col-sm-1">密码:</label>
			<div class="col-sm-3">
				<input id="loginPassword" name="password" placeholder="密码" type="password" class="form-control" maxlength="30"/>
			</div>
		</div>

		<div class="form-group">
			<label class="control-label col-sm-offset-4 col-sm-1">确认密码:</label>
			<div class="col-sm-3">
				<input id="loginPassword" name="confirmPassword" placeholder="确认密码" type="password" class="form-control" maxlength="30"/>
			</div>
		</div>

		<div class="form-group">
			<div class="col-sm-offset-4 col-sm-2">
				<input name="captcha" placeholder="验证码" class="form-control" id="captcha"/>
			</div>
			<div class="col-sm-2" id="v_container" style="width: 165px;
				height: 34px">

			</div>

		</div>


		<div class="form-group">
			<div class="actions col-sm-offset-4 col-sm-4">
				<input type="submit" id="loginSubmit" value="注册"
				class="btn btn-primary btn-lg">
			</div>

		</div>

	</form>


	<script>
			$(function () {
                Register.init
			})

	</script>

}